﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Messaging;


namespace TestQueue
{
    class Program
    {
        static void Main(string[] args)
        {
            if (MessageQueue.Exists(@".\Private$\RecordsTestQueue"))
            {
                // This function is used to delete the message queue
                MessageQueue.Delete(@".\Private$\RecordsTestQueue");
            }

            MessageQueue.Create(@".\Private$\RecordsTestQueue");
        }
    }
}
